import { List } from 'antd';

const { Item } = List;
const { Meta } = Item;
export const AxList = props => {
  const { children, ...rest } = props;
  return <List {...rest}>{children}</List>;
};

export const AxItem = props => {
  const { children, ...rest } = props;
  return (
    <Item
      // actions={[<a key="list-loadmore-edit">edit</a>, <a key="list-loadmore-more">more</a>]}
      {...rest}
    >
      {children}
    </Item>
  );
};

/**
 * @param title 标题
 * @param description 描述
 */
export const AxMeta = props => {
  const { children, ...rest } = props;
  return <Meta {...rest}>{children}</Meta>;
};
